import { initUrl } from '@/config/axios_config'

/*****************角色API***************** */
///rest/role/roleTreeList 获取角色列表
export const getRoleTreeList = data => initUrl(`/rest/role/roleTreeList`, data, 'GET')

///rest/role/list  获取角色列表  角色首页
export const getRoleHomeList = data => initUrl(`/rest/role/list`, data, 'GET')

///rest/role/add 新增角色
export const addRole = data => initUrl(`/rest/role/add`, data, 'POST')

///rest/role/edit 角色修改
export const editRole = data => initUrl(`/rest/role/edit`, data, 'POST')

///rest/role/remove 删除角色
export const deleteRole = data => initUrl(`/rest/role/remove`, data, 'GET')

// /rest/role/setAuthority 配置权限
export const setRoleAuthority = data => initUrl(`/rest/role/setAuthority`, data, 'POST')
